import request from 'utils/request'

/**
 * 用户登录
 * @param {string} mobile 手机号
 * @param {string} code 验证码
 * @returns 
 */
export const login = (mobile, code) => {
    return request({
        url: '/authorizations',
        data: {
            mobile,
            code
        },
        method: 'POST'
    })
}

/**
 * 获取用户个人信息
 * @returns 
 */
export const reqGetUserProfile = () => {
    return request({
        url: '/user/profile',
        method: 'GET'
    })
}
